home *** CD-ROM | disk | FTP | other *** search
- Path: arapaho.cse.ucsc.edu!ray
- From: ray@cse.ucsc.edu (Ray Swartz)
- Newsgroups: comp.lang.c++
- Subject: Derived->Base a Signature match?
- Date: 1 Feb 1996 00:04:53 GMT
- Organization: UC Santa Cruz CIS/CE
- Message-ID: <4ep035$kdp@darkstar.UCSC.EDU>
- NNTP-Posting-Host: arapaho.cse.ucsc.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- If
-
- class Base {
- public:
- int operator+(const Base&) {...}
- ...
- };
-
- class Derived : public Base {
- // no operator+
- ...
- };
-
- then
-
- Derived d;
- Base b;
-
- b = b + d; // is d converted to b by signature match (user-defined
- // conversion) or is it an exact match due
- // to language rules?
-
-
-